<?php echo $form->label($model,'type',array('class'=>'main-label')); ?>

<div class="formline">
    <?php echo $form->label($model,'type'); ?>
    <?php echo $form->dropDownList($model,'type',$model->dropDownType,array(
        'class'=>'input-short',
        'onChange'=>'Setting.changeType($(this));',
        'data-id'=>Yii::app()->createUrl('admin/settings/changeType'),
    )) ?>
</div>

<?php echo $form->label($model,'key',array('class'=>'main-label')); ?>

<div class="formline">
    <?php echo $form->label($model,'key'); ?>
    <?php echo $form->textField($model,'key',array(
        'class'=>'input-short',
    )) ?>
    <?php echo $form->error($model,'key'); ?>
</div>